// 全局过渡css效果

/* fade */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.28s;
}

.fade-enter,
.fade-leave-active {
  opacity: 0;
}

/* fade-transform */
// 在离开和进入的过程中
// 要做css过渡效果持续.5s
.fade-transform-leave-active,
.fade-transform-enter-active {
  transition: all .5s;
}

// 进入之前透明度设置为0, 偏移左一点
.fade-transform-enter {
  opacity: 0;
  transform: translateX(-30px);
}

// 离开以后, 透明度为0, 往右走一点
.fade-transform-leave-to {
  opacity: 0;
  transform: translateX(30px);
}

// 注意: 因为做完动画上面这些过渡的类名会被移除掉
// 所以没有给enter-to, 而且你本身就是切换路由, 所以组件能正常加载

/* breadcrumb transition */
.breadcrumb-enter-active,
.breadcrumb-leave-active {
  transition: all .5s;
}

.breadcrumb-enter,
.breadcrumb-leave-active {
  opacity: 0;
  transform: translateX(20px);
}

.breadcrumb-move {
  transition: all .5s;
}

.breadcrumb-leave-active {
  position: absolute;
}
